#version 300 es
precision mediump float;
precision highp int;

layout(std140) uniform u_bottomLeft
{
    highp vec2 U_18164;
} _23;

layout(std140) uniform fs_ub
{
    highp vec4 u_Time;
} _78;

layout(std140) uniform u_topRight
{
    highp vec2 U_12581;
} _153;

uniform mediump sampler2D u_tex0;

in highp vec2 v_texCoord;
in highp vec4 v_fragmentColor;
layout(location = 0) out highp vec4 FragColor;

void main()
{
    highp vec2 pixelCoord = vec2(v_texCoord);
    pixelCoord.x = (pixelCoord.x - _23.U_18164.x) + 1.0;
    pixelCoord.y = (pixelCoord.y - _23.U_18164.y) + 1.0;
    highp float speed = 0.75;
    highp float linewidth = 0.579999983310699462890625;
    highp float grad = 2.5;
    highp vec4 col1 = vec4(0.5, 0.5, 0.5, 1.0);
    highp vec4 col2 = vec4(0.0, 0.0, 0.0, 0.20000000298023223876953125);
    highp vec4 t1 = vec4(texture(u_tex0, v_texCoord));
    highp vec2 linepos = vec2(v_texCoord);
    linepos.x = (linepos.x - mod(_78.u_Time.y * speed, 2.0)) + 0.5;
    highp float y = linepos.x * grad;
    highp float s = smoothstep(y - linewidth, y, linepos.y) - smoothstep(y, y + linewidth, linepos.y);
    highp vec4 _finalColor = vec4(vec3(((t1 + ((col1 * s) + (col2 * s))) * t1.w).xyz), t1.w) * v_fragmentColor;
    FragColor = vec4(vec3(_finalColor.xyz), t1.w);
}

